package com.wechatnotice.wechatnotice.controller;

import cn.hutool.core.date.DateUtil;
import com.wechatnotice.wechatnotice.service.NoticeService;
import com.wechatnotice.wechatnotice.utils.WxWorkSendUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *
 * </p>
 *
 * @program: WechatNotice
 * @author: daPangDong
 * @create: 2022-10-27 18:21
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/wxWork")
public class WxWorkSendController {


    /**
     *
     */
    @GetMapping("toSend")
    public void send(){
        WxWorkSendUtil.sendTextMesg("yuhandong","将对象转换成 map对象 and hutool 将对象转换成json字符串");
    }

}
